Expand description

This crates provides simply the Schema struct. It resembles the latest (draft-07) json-schema core spec. If this spec is no longer up-to-date by the time you read this, please open a new issue.

If this type seems a bit confusing, then it’s because json-schema is a bit too flexible.

Usage

use serde_json_schema::Schema;
let schema_file = fs::read_to_string("./examples/address.schema.json")?;
let address_schema = Schema::try_from(schema_file)?;

Modules

Structs

  • Represents a full JSON Schema Document
  • A parsed URL record.

Traits

  • Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.